- Remove Outermost Parentheses
- 17 March, 2026: 00.25.19 ❌
- Approach was right
- Couldn't able to implement push, pop in appropriate order/way/position.
- 30 March, 2026: 00.07.13 ✔
- Reverse words in a given string
- Largest Odd Number in a String
- 05 March, 2026: 00.03.39 ✔
- 30 March, 2026: 00.02.14 ✔
- Longest Common Prefix
- 17 March, 2026: 00.27.18 ❌
- Couldn't able to solve it
- 30 March, 2026: 00.21.06 ✔
- Failed at edge case(if no item found, the smallest one is the answer)
- Isomorphic String
- 17 March, 2026: 00.35.24 ❌
- Couldn't able to solve it
- Keep repeating same mistake
- You're only comparing character frequencies, but isomorphic strings depend on character mapping and positions, not just counts.
- Map one character with another character from different string.
| Index | s[i] | t[i] | Mapping |
|---|
| 0 | p | t | p → t |
| 1 | a | i | a → i |
| 2 | p | t | already mapped ✔ |
| 3 | e | l | e → l |
| 4 | r | e | r → e |
- 30 March, 2026: 00.11.25 ❌
- Rotate String
- 05 March, 2026: 00.23.12 ❌
- Couldn't able to implement it
- 30 March, 2026: 00.17.43 ❌
string::npos is a special constant in C++ that represent not found
- Check if two strings are anagram of each other